﻿using AgencyManagerSystem.Common;
using AgencyManagerSystem.DataFetcher;
using AgencyManagerSystem.DataUpdater;
using AgencyManagerSystem.Model;
using System;

namespace AgencyManagerSystem.Core
{
    public class ModuleManager:DocManager<ModuleModel>
    {
        ModuleUpdater updater;
        public ModuleManager()
        {
            if (updater == null)
                InjectionUpdater();
        }

        protected override BaseUpdater<ModuleModel> InjectionUpdater()
        {
            ModuleUpdaterCreator moduleUpdaterCreator = new ModuleUpdaterCreator();
            updater = moduleUpdaterCreator.CreateModuleUpdaterInstance();
            return updater;
        }
    }
}
